import './App.css';
import {HashRouter} from 'react-router-dom'

import { useRoutes } from 'react-router-dom';
import routes from './routes';

// 渲染路由
function RouteElement(){
  const element = useRoutes(routes)
  return element
}
function App() {
  return (
    <HashRouter>
      <RouteElement />
    </HashRouter>
  );
}

export default App;
